
<!DOCTYPE html>
<html>
<head lang="en">
    <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no" />
    <meta charset="UTF-8">
    <title id="title">{$web_title}</title>
    <meta content="{$web_keywords}" name="keywords">
    <meta content="{$web_description}" name="description">
    <meta http-equiv="Cache-Control" content="no-transform" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
</head>
<link rel="stylesheet" href="/public/lboyue/m/css/style.css?v=20180509">
<style type="text/css">
    .cline{line-height: 40px; font-size: 18px; text-indent: 36px;}
	p{line-height: 40px; font-size: 18px; text-indent: 36px;}
</style>
<script type="text/javascript" src="/public/lboyue/m/js/flexible.min.js?v=20180509"></script>
<script type="text/javascript" src="/public/lboyue/m/js/jquery-1.8.3.min.js?v=20180509"></script>
<script type="text/javascript" src="/public/lboyue/m/js/main.js?v=20180509"></script>
<script type="text/javascript" src="/public/lboyue/m/js/libs/jquery.cookie.js?v=20180509"></script>
<script type="text/javascript" src="/public/lboyue/m/js/libs/jquerybase64.js"></script>
<script type="text/javascript" src="/public/lboyue/m/js/libs/layer/layer.js?v=20180509"></script>
<script type="text/javascript" src="/public/lboyue/m/sitejs/book.js?v=20180509"></script>
<script type="text/javascript" src="/public/lboyue/m/sitejs/util.js?v=20180509"></script>

<body>

<div class="container">
        <div class="app_body">
        <div class="app_selectSpanBlock" style="display: none;">
            <div  class="app_selectSpanBlockleft">字号</div>
            <div  class="app_selectSpanBlockleft2">背景</div>
            <div class="app_selectSpanBlock_top">

                <span class="button  button_left">A+</span>
                <span class="button  button_right">A-</span>
                <span class="center">16</span>
            </div>
            <div class="app_selectSpanBlock_bottom">
                <span ><i class="color1 active" colorStyle="1">白天</i></span>
                <span ><i class="color2" colorStyle="2">夜间</i></span>
                <span ><i class="color3" colorStyle="3">大地</i></span>
                <span ><i class="color4" colorStyle="4">护眼</i></span>
                <span ><i class="color5" colorStyle="5">淡粉</i></span>
                <span ><i class="color6" colorStyle="6">淡蓝</i></span>
                <span ><i class="color7" colorStyle="7">靛蓝</i></span>
            </div>

            <div class="app_footerBlockSpan">
                <a href="/book/chapter/{$bookid}/" class="footer1"><i>书籍目录</i></a>
                <a href="/book/info/id/{$bookid}.html" class="footer2"><i>作品信息</i></a>
                <a href="/" class="footer3"><i>返回首页</i></a>
                <a  class="footer4" id="closeBtn"><i>关闭菜单</i></a>
            </div>
        </div>
        <div class="app_meskSection"></div>

        <div class="app_wenzhangBlock  colorStyle1">
            <div class="title">{$chaptername}</div>
            <div class="content"  id="content">
                
            </div>

            <script type="text/javascript">

                var bookid = "{$bookid}";
                var chapterid = "{$chapterid}";
                var domain = "{$Think.config.web_pc_url|str_replace="http://www","",###}";
                $(document).ready(function () {
                    if (weixinhidechaptertitle == 1 && isWeiXin()) {
                        var newtitle = "章节内容";
                        $("#title").text(newtitle);
                    }

                    // 控制顶部微信二维码显示情况
                    if (chapternoweixinchangeqrcodestyle == 1 && !isWeiXin()) {
                        $("#erweimastyle1").show();
                        $("#erweimastyle2").hide();
                    }
                    var readsetting=$.cookie('readsetting');

                    if(readsetting==null||readsetting==undefined) {
                        var fontsize=32;
                        var background=1;
                    } else {
                        var settingarray=readsetting.split('_');
                        if(settingarray.length==2)
                        {
                            background=settingarray[0];
                            fontsize=settingarray[1];
                        }
                    }

                    var lineheight=Math.ceil(fontsize*1.22);
                    var textindent=Math.ceil(fontsize*1.1);

                    // 初始化控制页面 控制选中按钮
                    var selectacive = 1;
                    $(".app_selectSpanBlock_bottom i").each(function () {
                        if ($(this).hasClass("active")) {
                            selectacive = parseInt($(this).attr("colorStyle"))
                        }
                    });
                    if (selectacive != background) {
                        $(".app_selectSpanBlock_bottom .color"+selectacive).removeClass("active");
                        $(".app_selectSpanBlock_bottom .color"+background).addClass("active");
                    }
                    // 控制主背景
                    $(".app_wenzhangBlock").removeAttr('class').addClass("app_wenzhangBlock").addClass("colorStyle"+background);
                    // 控制显示字体
                    $(".app_selectSpanBlock_top .center").html(fontsize/2);

                    $('.content p').css({'fontSize': (fontsize/64)+"rem"}).css({'line-height':lineheight+"px"}).css({'text-indent':textindent+"px"});
                    // end


                    // 背景控制
                    $('.app_selectSpanBlock_bottom i').click(function () {
                        var num = $(this).attr('colorStyle');
                        $('.app_wenzhangBlock').removeAttr('class').addClass('app_wenzhangBlock').addClass('colorStyle'+num);
                        $(this).parent().parent().find('i').removeClass('active');
                        $(this).addClass('active');
                        readsetting_background(num);
                    })


                    // 字体增大
                    $('.button_left').click(function () {
                        fontsize = parseInt($(".app_selectSpanBlock_top .center").text());
                        fontsize = fontsize * 2;
                        if(fontsize > 58){
                            malert("字体不能再大了哦");
                            fontsize = 60;
                        }else{
                            fontsize = fontsize+2;
                        }
                        $(".app_selectSpanBlock_top .center").html(fontsize/2);
                        $("#content").css({'font-size':(fontsize/64).toFixed(2)+'rem'});
                        var lineheight=Math.ceil(fontsize*1.22);
                        var textindent=Math.ceil(fontsize*1.1);
                        $('.content p').css({'fontSize': (fontsize/64)+"rem"}).css({'line-height':lineheight+"px"}).css({'text-indent':textindent+"px"});
                        readsetting_fontsize(fontsize);
                    });


                    $('.button_right').click(function () {
                        fontsize = parseInt($(".app_selectSpanBlock_top .center").text());
                        fontsize = fontsize * 2;
                        if(fontsize < 26){
                            malert("字体不能再小了哦");
                            fontsize = 24;
                        }else{
                            fontsize=fontsize-2;
                        }

                        $(".app_selectSpanBlock_top .center").html(fontsize/2);
                        $("#content").css({'font-size': (fontsize/64).toFixed(2)+'rem'});
                        var lineheight=Math.ceil(fontsize*1.22);
                        var textindent=Math.ceil(fontsize*1.1);
                        $('.content p').css({'fontSize': (fontsize/64)+"rem"}).css({'line-height':lineheight+"px"}).css({'text-indent':textindent+"px"});
                        readsetting_fontsize(fontsize);
                    })


                    $("#editButton").click(function () {
                        if($('.app_selectSpanBlock').css('display')=='none'){

                            if(navigator.userAgent.match(/(iPhone|iPod|ios)/i)){
                                $('.app_selectSpanBlock').css({'position':'sticky'}).fadeIn(300);
                            }else if(navigator.userAgent.match(/(Android)/i)){
                                $('.app_selectSpanBlock').css({'position':'fixed'}).fadeIn(300);
                            }

                            $('.app_meskSection').show();
                            $('body').css({'overflow':'hidden'})
                        }else{

                            $('.app_selectSpanBlock').removeAttr('style').fadeOut(300);
                            $('.app_meskSection').hide();
                            $('body').css({'overflow':''})
                        }

                    })

                    var pingjun = $('.app_footerBlockSpan a').length;
                    $('.app_footerBlockSpan a').css({'width': 100 / pingjun+"%"})

                    $('#closeBtn').click(function () {
                        $('.app_selectSpanBlock').fadeOut(300);
                        $('.app_meskSection').hide();
                        $('body').css({'overflow':''})
                    })

                    $('.app_meskSection').click(function () {
                        $('.app_selectSpanBlock').fadeOut(300);
                        $('.app_meskSection').hide();
                        $('body').css({'overflow':''})
                    })



                    bookselfdata(bookid, chapterid, 2, domain);

                })

                if (isWeiXin()) {
                    var userqiandao=getCookie('userqiandao');
                    if(userqiandao==undefined)
                    {
                        document.writeln("<script type=\'text/javascript\' src=\'/tool/qiandao?bookid="+bookid+"&chapterid="+chapterid+"\'><\/script>");
                    }
                }

                function getCookie(key){
                    var arr1 = document.cookie.split('; ');//这里是分号+空格分隔
                    for( var i = 0 , len = arr1.length ; i < len ; i++ ){
                        var arr2 = arr1[i].split('=');
                        if( arr2[0] == key ){
                            return decodeURI(arr2[1]);
                        }
                    }
                }

            </script>


            <!-- 作者有话说 -->
            

            <!-- 书籍推荐 -->
            
                        <!-- 打赏-->
            <div class="shangBlock" id="sendgifticon">
                <div class="shangButton"><a href="/book/bookbonus?bookid={$bookid}&bonusid=0"><img src="/public/lboyue/m/images/shangButton.png" alt=""/></a></div>
                <div class="shangBlockFont">打赏作者</div>
            </div>
            
            <div class="pageBlocksp">
                <div class="pageBL2">
                    <ul>
                        <li>
								                                                       <a {prev articleid="$bookid" chapterid="$chapterid" model="chapter" nodata="onclick='nochapter(1,0)' class='no'"}id="pre" href="/chapter/read/{$bookid}/{$prev['id']}"{/prev}>上一章</a>
                        </li>
                        <li><a id="editButton">菜单</a></li>
                        
                        
                        <li>
                                                                                    <a {next articleid="$bookid" chapterid="$chapterid" model="chapter" nodata="onclick='return nochapter(2,0);'"}id="next" href="/chapter/read/{$next.articleid}/{$next.id}"{/next}>下一章</a>
                                                    </li>
                    </ul>
                </div>
            </div>

            <!-- 书籍推荐 -->
            
            <div class="contentButton public_addPositionRelative contentButton2" id="erweimastyle1" style="display: none;">
                <div class="code_span">
                    <span class="code"><img src="{$qrcode}" alt="" /></span>
                    <span class="codeTips">（微信中长按识别二维码）</span>
                </div>
                <div class="codeFont">
                    微信搜索公众号[<strong>{$followname}</strong>]，关注<strong>{$followname}</strong>
                    公众账号后，搜索书号<strong>67</strong>，继续追书。
                </div>
            </div>

            <div class="moreButton" id="erweimastyle2" style="padding-top: 0">
                <div class="codeDaoHang">
                    <div class="codeDaoHang_nav"><a href="/">首页</a> > <a href="/book/info/id/{$bookid}.html">作品名称</a> > <a href="/book/chapter/{$bookid}/">目录</a></div>
                    <div class="codeDaoHang_list">关注官方微信公众号, 方便下次阅读</div>
                    <div class="codeImages">
                        <img src="{$qrcode}" alt="" />
                    </div>
                    <div class="codeTips2">（微信中长按识别二维码）</div>
                </div>
            </div>

                    </div>
    </div>
    <input type="hidden" id="chapterid" value="16482">
</div>
</body>
<script>
    var weixinhidechaptertitle=0;
    var chapternoweixinchangeqrcodestyle=1;
    var DeveloperMode = "";
    noctrlc();

	var Cbox{$randomStr} = '{$chaptercontent|json_encode}';
	var html ='';		
	$.each(eval(Cbox{$randomStr}).reverse(), function(i, v) {
		html +=v;
	})
	$("#content").html(html);
</script>
</html>